package com.antdesignbackend.backend.service.impl;

import com.antdesignbackend.backend.entity.Quarantine;
import com.antdesignbackend.backend.entity.entityVo.QuarantineVo;
import com.antdesignbackend.backend.mapper.QuarantineMapper;
import com.antdesignbackend.backend.service.QuarantineService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class QuarantineServiceImpl extends ServiceImpl<QuarantineMapper, Quarantine> implements QuarantineService {

    @Autowired
    QuarantineMapper quarantineMapper;

    @Override
    public List<QuarantineVo> search(QueryWrapper<QuarantineVo> queryWrapper, Page<QuarantineVo> page) {
        return quarantineMapper.search(queryWrapper,page);
    }

    @Override
    public Integer count(QueryWrapper<QuarantineVo> queryWrapper) {
        return quarantineMapper.count(queryWrapper);
    }
}
